#include "../include/list.hpp"


// stl_self::list<int> test()
// {
//     stl_self::list<int> l1(3, 6);
//     return l1;
// }
int main()
{
    stl_self::list<int> l1(5, 3);
    l1.show();
    int arr[] = {7,8,9,10};
    l1.insert(l1.end(), (int*)arr, arr + sizeof(arr) / sizeof(int));
    // std::cout << l1.back() << std::endl;

    // stl_self::list<int> ret = test();
    // ret.show();

    for(stl_self::list<int>::reverse_iterator it = l1.rbegin(); it != l1.rend(); ++it)
    {
        std::cout << *it << " ";
    }
    std::cout << std::endl;

    return 0;
}
